<!doctype HTML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
    <title>{% block title %}{% endblock %}</title>
    <link href="/css/main.css" type="text/css" rel="stylesheet"/>
    {% block css%}{% endblock %}
    <script type="text/javascript" src="/js/jquery.js"></script>
    {% block scripts %}{% endblock %}
</head>
<body>
    <div class="UserBar">
        {% if viewer.is_authenticated %}
            You are now logged in as <a href="{{ viewer.get_profile.get_absolute_url }}">{{ viewer.get_profile.display_name }}</a>.
            <a href="{% url stream.views.logout %}">Logout</a>
        {% else %}
            You are browsing anonymously. <a href="{% url django_openid_auth.views.login_begin %}">Login</a>
        {% endif %}
    </div>
    {% block content %}
    {% endblock %}
</body>
</html>
